
<h2>Authentication Form</h2>
<em>Use this form to log in with an registered account.</em><br />
<% if(request.getUserPrincipal() != null) { %>
	Currently logged as : <code><%=request.getUserPrincipal().getName()%></code><br />
<% } else { %>
	Not currently logged.<br />
<% } %>

<form method="post" action="j_security_check">
	<p>
		<input type="hidden" name="j_uri" value="<%=request.getRequestURI()%>" />
		<label for="j_username">login : </label><input type="text" name="j_username" /><br />
		<label for="j_password">password : </label><input type="password" name="j_password" /><br />
		<input type="submit" value="Authenticate" />
	</p>
</form>